package com.test.jparest.controller;

import com.test.jparest.dao.OidDao;
import com.test.jparest.entity.OidInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * describe:
 *
 * @author helloworldyu
 * @date 2018/6/4
 */
@RestController
public class OidController {
	@Autowired
	OidDao oidDao;

	@RequestMapping(path = "/hello/oid")
	public List<OidInfo> getInfo() {
		return oidDao.findAll();
	}
}